package jxtend.processor.eclipse.visitor;

import jxtend.processor.eclipse.visitor.handler.ASTNodeVisitorContext;
import jxtend.processor.eclipse.visitor.handler.impl.ASTNodeBits;

import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.lookup.Scope;

@SuppressWarnings("restriction")
public class MarkAsGeneratedASTNodeVisitor implements ASTNodeVisitor {

	@Override
	public boolean visit(ASTNodeVisitorContext context, ASTNode node, Scope scope) {
		node.bits |= ASTNodeBits.JXTEND_GENERATED;

		return true;
	}

	@Override
	public void endVisit(ASTNodeVisitorContext context, ASTNode node, Scope scope) {
		// Do nothing
	}

}
